﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Alex_s_Dream_The_Toy_World
{
    public class Robot: BaseEntity
    {
        AnimationRenderComponent newRenderComponent;
        RobotAIComponent newAIComponent;
        AIPhysicsComponent newAIPhysComponent;

        public Robot(FrameworkCore game)
            : base(game)
        {
            newRenderComponent = new AnimationRenderComponent(this);
        }

        public void LoadModel(string action, string modelPath)
        {
            if (newRenderComponent != null)
            {
                newRenderComponent.LoadModel(action, modelPath);
            }
        }

        public void LoadAI()
        {
            newAIComponent = new RobotAIComponent(this);
            newAIPhysComponent = new AIPhysicsComponent(this, ShapeType.Capsule, 5.0f);
        }
    }
}
